<?php
/**
* @author: Nguyen Thanh Tung
* @date: Monday, January 27, 2014
*/
if( !isset($AppUI) 
	//!isset($_SESSION['uniform']) ||
	//(isset($_SESSION['uniform']) && ($_SESSION['uniform']&1<<2)==0)	
	/*|| 
	(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/
) {
	redirect(HOST_BACKEND);
}
/*$this->load->model('uniform_model', 'uniform');
$intUniformId   = (int)$this->input->get('uniformid', 0);
$row            = $this->uniform->get($intUniformId);//test(CI_Function::getYears($row['y_from']));
$this->smarty->assign('homeshirt',$row['home_shirt']);
$this->smarty->assign('y_from',CI_Function::getYears($row['y_from']));
$this->smarty->assign('y_to',CI_Function::getYears($row['y_to']));
//$this->smarty->assign('active',(int)$row['active']);
$this->smarty->assign('row', $row);*/

$this->load->model('national_model','national');
$arrnational = $this->national->getAll();

$this->load->model('year_model','year');
$years = $this->year->getAll(1800,2014);

$this->load->model('league_model','league');
$league = $this->league->getAll();

$this->smarty->assign('league',$league);
$this->smarty->assign('years',$years);
$this->smarty->assign('arrnational',$arrnational);

$this->smarty->display('playersquad/edit.tpl');